package com.zsxb.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsxb.crm.pojo.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RecordMapper extends BaseMapper<Record> {
    @Select("select * from tb_record where business_id = #{businessId}")
    List<Record> selectByBusinessId(Long businessId);

    @Select("select * from tb_record where clue_id = #{clueId}")
    List<Record> findByClueId(Long clueId);
}
